000 \to 0001 \to 1010 \to 2011 \to 3100 \to 4101 \to 5Physically, it’s easier to either store some electricity or not store some electricity in some switches or transistors, so binary bits are a natural solution
123 in Binary & DecimalIn decimal form, representing 123 can be done by splitting it into the hundreds, tens, and one’s place; like this:
| 100 | 10 | 1 |
|---|---|---|
| 1 | 2 | 3 |
In binary, representing 123 can be done by splitting it into 2^n bits; like this:
| 2^6 | 2^5 | 2^4 | 2^3 | 2^2 | 2^1 | 2^0 |
|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 0 | 1 | 1 |